package createThread.cn.tedu.threaddemo.test1;

public class Main {
    private static int num = 10;
    public static void main(String[] args) {
        Main main = new Main() {
            @Override
            public void printNum() {
                System.out.println(num);
            }
        };
        main.printNum();
    }
 
    public void printNum() {
        System.out.println(num);
    }
}
